@echo off
choice /C wlm /M "windows,linux,mac"
if errorlevel 3 goto mac
if errorlevel 2 goto linux
if errorlevel 1 goto windows
:windows
echo build windows amd64
set CGO_ENABLED=0
set GOOS=windows
set GOARCH=amd64
go build -ldflags "-s -w" -o app.exe  .\main\proxy.go
goto end

:linux
echo build linux amd64
set CGO_ENABLED=0
set GOOS=linux
set GOARCH=amd64
go build -ldflags "-s -w" -o app  .\main\proxy.go
goto end

:mac
echo build mac amd64
SET CGO_ENABLED=0
SET GOOS=darwin
SET GOARCH=amd64
go build -ldflags "-s -w" -o app_mac  .\main\proxy.go
goto end

:end
echo done~